from pydantic import BaseModel,Field

# 公共成功返回类
class Rtn():
    result: int
    msg: str
    obj: object

    def __init__(self, obj=[], result:int=200, msg:str="成功"):

        self.obj = obj
        self.result = result
        self.msg = msg


# response 验证基类
class RtnResp(BaseModel):
    result: int
    msg: str
    obj: object
